package huangcd.javanet.graphml;

import edu.uci.ics.jung.graph.impl.DirectedSparseEdge;

public class JavaClassEdge extends DirectedSparseEdge
{
    protected String edgeID;
    protected String fromID;
    protected String toID;

    @Override
    public String toString()
    {
        return ((JavaClassVertex) getSource()).getClassName() + "->"
                + ((JavaClassVertex) getDest()).getClassName();
    }

    public JavaClassEdge(JavaClassVertex from, JavaClassVertex to)
    {
        super(from, to);
    }

    public String getEdgeID()
    {
        return this.edgeID;
    }

    public void setEdgeID(String edgeID)
    {
        this.edgeID = edgeID;
    }

    public String getFromID()
    {
        return this.fromID;
    }

    public void setFromID(String fromID)
    {
        this.fromID = fromID;
    }

    public String getToID()
    {
        return this.toID;
    }

    public void setToID(String toID)
    {
        this.toID = toID;
    }
}
